In my opinion, there is a point where loyalty ends. There has to be. When evil enters the picture we may have to make a decision. We may have to forsake loyalty in order to forsake evil.
For my parents generation the living example of the extreme case of people having to make that decision on a national scale was Nazi Germany. In my own time the first example that I was exposed to, on a national scale, was the Mai Lai Massacre.
Of course there have been many, many, many more cases of people having to make those kinds of decisions. Looking at the former example the Nuremberg Principles codified the concept, at least on a national scale, that greater moral principles are more important than national laws and loyalties when evil enters the picture. The principle of my country right or wrong was shown at Nuremberg to be wrong.
If we can look at these extreme cases and agree there is a line where loyalty ends, at least on a grand national scale, do we apply that principle in our personal lives, do we apply it on a personal scale? I cannot answer that question for others; but speaking for myself, I believe we do. I believe we must.